
package com.wulian.user.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

import org.springframework.data.annotation.Transient;

/**
 * 
* @ClassName: SysRole 
* @Description: TODO(角色管理对象) 
* @author 马志豪
* @date 2019年9月17日 下午3:50:14 
*
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sys_role")
public class SysRole extends Model<SysRole> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "role_id", type = IdType.AUTO)
    private Integer roleId;
    @TableField("role_name")
    private String roleName;
    @TableField("role_code")
    private String roleCode;
    @TableField("role_desc")
    private String roleDesc;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("is_admin")
    private String isAdmin;
    /**
     * 删除标识（0-正常,1-删除）
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 角色部门Id
     */
    @TableField(exist = false)
    private Integer roleDeptId;
    @TableField(exist = false)
    private String deptName;
    /**
     * 公司id
     */
    @TableField("company_id")
    private Integer companyId;
    @Override
    protected Serializable pkVal() {
        return this.roleId;
    }

  
}
